package com.zyh.server.mapper;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zyh.server.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ZYH
 * @description 针对表【t_goods】的数据库操作Mapper
 * @createDate 2024-11-14 11:27:48
 * @Entity com.zyh.server.entity.Goods
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

	//使用mybatis-plus分页插件，就不需要自己手动编写limit
	//只需要传递一个Page参数
	IPage<Goods> selectAll(@Param("page") Page<Goods> page);

}




